package cn.edu.scau.cmi.wujiaming.hibernate.domain;

public class Student implements java.io.Serializable{
	
	private Integer  id;
	private String name;
	private Teacher  teacher;
	
	public Student() {
		
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Teacher getTeacher() {
		return teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}
	
	public  String toString() {
		return "Student:{name:" + name + ";Teacher:" + this.teacher.getName() + "}";
	}
}
